<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:68:"/www/wwwroot/xunda-college/application/atxunda/view/nav/navedit.html";i:1700617178;s:69:"/www/wwwroot/xunda-college/application/atxunda/view/index/header.html";i:1700617178;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>后台管理系统</title>
<link rel="stylesheet" href="__PUBLIC__css/pintuer.css?v=1.0">
<link rel="stylesheet" href="__PUBLIC__admin/admin.css">
<link rel="stylesheet" href="__PUBLIC__layui/css/layui.css">
<script src="__PUBLIC__js/jquery.js"></script>
<script src="__PUBLIC__js/pintuer.js"></script>
<script src="__PUBLIC__js/cookie.js"></script>
<script src="__PUBLIC__layui/layui.js"></script>
</head>
<style type="text/css">
	.refresh{width: 20px;height: 20px;float: right;margin:10px 20px;display: block;}
</style>
</head>
<?php if(request()->controller() != 'Index'): ?><img src="__PUBLIC__images/refresh.png" class="refresh" title="刷新"><?php endif; ?>
<script type="text/javascript">
	$('.refresh').click(function(){layer.msg('刷新中……');window.location.reload();})
</script>
<script type="text/javascript">
	function openwinx(url,name,w,h) {
		if(!w) w=screen.width-4;
		if(!h) h=screen.height-95;
		window.open(url,name,"width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no");
	}
</script>
<body>
	<div class="panel admin-panel margin-top" id="add">
		<div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 编辑内容</strong></div>
		<div class="body-content">
			<form method="post" class="form-x" action=""  enctype="multipart/form-data">    
				<div class="form-group">
					<div class="label">
						<label>名称：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" value="<?php echo $nav_data['nav_name']; ?>" name="nav_name" data-validate="required:请输入标题" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>选择套餐：</label>
					</div>
					<div class="field" style="padding-top:8px;"> 
						<?php if(is_array($pack_data) || $pack_data instanceof \think\Collection): if( count($pack_data)==0 ) : echo "" ;else: foreach($pack_data as $k=>$pack): ?>
						<?php echo $pack['title']; ?> <input  type="checkbox" class="pack" name="pack_id[<?php echo $k; ?>]" value="<?php echo $pack['id']; ?>" <?php if($pack['pn']): ?> checked="" <?php endif; ?>/><input type="text" name="price[<?php echo $k; ?>]" class="input_edit" placeholder="实际价格" value="<?php echo $pack['pn']['price']; ?>">
						<input type="text" name="original_price[<?php echo $k; ?>]" class="input_edit"  placeholder="原价" value="<?php echo $pack['pn']['original_price']; ?>"><br>
						<?php endforeach; endif; else: echo "" ;endif; ?>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>字体图标：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" value="<?php echo $nav_data['nav_icon']; ?>" name="nav_icon" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>字体图标背景色：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" value="<?php echo $nav_data['nav_back']; ?>" name="nav_back" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>是否在前台页面展示：</label>
					</div>
					<div class="field">
						<div class="button-group radio">
							<label class="button <?php if($nav_data['is_show'] == 1): ?> active <?php endif; ?>">
								<span class="icon icon-check"></span>
								<input name="is_show" value="1" type="radio" <?php if($nav_data['is_show'] == 1): ?>  checked="checked" <?php endif; ?>>是
							</label>
							<label class="button <?php if($nav_data['is_show'] == 0): ?> active <?php endif; ?>">
								<span class="icon icon-times"></span>
								<input name="is_show" value="0"  type="radio" <?php if($nav_data['is_show'] == 0): ?>  checked="checked" <?php endif; ?>>否
							</label>
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>排序：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" name="nav_sort" value="<?php echo !empty($nav_data['nav_sort'])?$nav_data['nav_sort']: 0; ?>"  data-validate="required:,number:排序必须为数字" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label></label>
					</div>
					<div class="field">
						<button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</body></html>